﻿using System;
using System.Collections.Generic;using System.Linq;
using System.Text;
namespace Entity
{ 

    public class BoWorks 
    {
        public const int WORK_GROUP = 1;
        public const int WORK_STUDENT = 0;
        public const int WORKTYPE_UNKNOWN = 0;
        public const int WORKTYPE_COMPRESSED = 1;
        public const int WORKTYPE_IMAGE = 2;
        public const int WORKTYPE_OFFICE = 3;

        #region BO
        private String _WOR_ID;
        private String _WOR_TITLE;
        private Int32 _WOR_ISGROUP;
        private String _WOR_GROUPS;
        private String _WOR_PERTICIPANTS;
        private String _WOR_COMMENT;
        private Int32 _WOR_TYPE;
        private String _WOR_URL;
        private DateTime _WOR_DATE;
        private String _WOR_GROUPNAME;
        private String _WOR_STUDENTNAME;
        private String _WOR_CONTESTS;
        private String _CON_NAME;
        private String _GRO_NAME;
        private String _STU_NAME;
        #endregion

        public String GRO_NAME
        {
            get { return _GRO_NAME; }
            set { _GRO_NAME = value; }
        }
        public String STU_NAME
        {
            get { return _STU_NAME; }
            set { _STU_NAME = value; }
        }
        public String WOR_CONTESTS
        {
            get { return _WOR_CONTESTS; }
            set { _WOR_CONTESTS = value; }
        }
        public String CON_NAME 
        {
            get { return _CON_NAME; }
            set { _CON_NAME = value; }
        }
        public String WOR_ID 
        {
            get{ return _WOR_ID; }
            set{ _WOR_ID=value; }
        }
        public String WOR_TITLE 
        {
            get{ return _WOR_TITLE; }
            set{ _WOR_TITLE=value; }
        }
        public Int32 WOR_ISGROUP 
        {
            get{ return _WOR_ISGROUP; }
            set{ _WOR_ISGROUP=value; }
        }
        public String WOR_GROUPS 
        {
            get{ return _WOR_GROUPS; }
            set{ _WOR_GROUPS=value; }
        }
        public String WOR_PERTICIPANTS 
        {
            get{ return _WOR_PERTICIPANTS; }
            set{ _WOR_PERTICIPANTS=value; }
        }
        public String WOR_COMMENT 
        {
            get{ return _WOR_COMMENT; }
            set{ _WOR_COMMENT=value; }
        }
        public Int32 WOR_TYPE 
        {
            get{ return _WOR_TYPE; }
            set{ _WOR_TYPE=value; }
        }
        public String WOR_URL 
        {
            get{ return _WOR_URL; }
            set{ _WOR_URL=value; }
        }
        public DateTime WOR_DATE 
        {
            get{ return _WOR_DATE; }
            set{ _WOR_DATE=value; }
        }

        public String WOR_GROUPNAME
        {
            get { return _WOR_GROUPNAME; }
            set { _WOR_GROUPNAME = value; }
        }

        public String WOR_STUDENTNAME
        {
            get { return _WOR_STUDENTNAME; }
            set { _WOR_STUDENTNAME = value; }
        }

        public String WorkTypeName
        {
            get
            {
                switch (WOR_TYPE)
                {
                    case 0:
                        return "其他";
                    case 1:
                        return "压缩文件";
                    case 2:
                        return "图片";
                    case 3:
                        return "文档";
                    default:
                        return "";
                }
            }
        }

        public BoWorks()
        {
            WOR_ID = "";
            WOR_TITLE = "";
            WOR_ISGROUP = WORK_STUDENT;
            WOR_GROUPS = "";
            WOR_PERTICIPANTS = "";
            WOR_COMMENT = "";
            WOR_TYPE = WORKTYPE_UNKNOWN;
            WOR_URL = "";
            WOR_DATE = DateTime.Now;
            WOR_GROUPNAME = "";
            WOR_STUDENTNAME = "";
            WOR_CONTESTS = "";
            CON_NAME = "";
            GRO_NAME = "";
            STU_NAME = "";
        }
    }
}
